package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JOptionPane;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;



import Modelo.*;
import Vista.*;
import Controlador.*;

@SuppressWarnings("all")


public class CPrincipal implements ActionListener{
	
	private VPrincipal vp;
	private CPrincipal cp;
	
	public CPrincipal(){
		super();
		this.vp = new VPrincipal(this);
		this.vp.setVisible(true);
		
		
		
	}
	
	//Metodos Para accionar los botones
	@Override
	public void actionPerformed(ActionEvent e) {
	      if(e.getActionCommand().toLowerCase().equals("empresa"))
	      {
	    	  
	    	  CTerminal ventanaterminal = new CTerminal();
	    	  
	      }
	      else if(e.getActionCommand().toLowerCase().equals("guardar"))
	      {
	    	  		
	      }else if(e.getActionCommand().toLowerCase().equals("limpiar"))
	      {
	    	
	      }else if(e.getActionCommand().toLowerCase().equals("eliminar"))
	      {
	    	  
	      }
	      else if(e.getActionCommand().toLowerCase().equals("buscar")){
	    	
	      }
	      
	}

}
